// FileMapManger.h: interface for the CFileMapManger class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FILEMAPMANGER_H__97CD1C09_D4C7_47B7_A5A9_D61CB4BB2EA8__INCLUDED_)
#define AFX_FILEMAPMANGER_H__97CD1C09_D4C7_47B7_A5A9_D61CB4BB2EA8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "../include/FileMap.h" 
#include "../Include/FileMapBuffer.h"

class CFileMapManger  
{
	private :
		static CFileMapManger* m_pInstance; 
	public: 
		CFileMap		m_fileMap;
		CFileMapBuffer	m_fileMapBuffer;
		CString m_strLastError;
		inline CString GetLastErrorInfo()
		{
			return m_strLastError;
		}
		int GetCurGameCount();
		BOOL CreateMapFile();
		CFileMapManger();
		static CFileMapManger* CreateInstance();
		virtual ~CFileMapManger();
		//BOOL Init();
		BOOL m_bIsRunning;
		inline BOOL IsRunning()
		{
			return m_bIsRunning;
		}
		BOOL CheckOnline(lpAccount pAcc);
		BOOL ClearValue(lpAccount lpItem);
		BOOL WriteAcc();
		lpAccount ReadAcc(lpAccount pAcc);
		BOOL WriteMountl(lpMountlSet pMountSet);
		lpMountlSet ReadMountl(lpMountlSet pMountSet);
};

#endif // !defined(AFX_FILEMAPMANGER_H__97CD1C09_D4C7_47B7_A5A9_D61CB4BB2EA8__INCLUDED_)
